package routers

import (
	"CRMSystem/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	//登录页面
	beego.Router("/page/login", &controllers.PageController{}, "get:LoginPage")

	//注册页面
	beego.Router("/page/register", &controllers.PageController{}, "get:RegisterPage")

	//主页
	beego.Router("/page/main", &controllers.PageController{}, "get:MainPage")

	//基本信息
	beego.Router("/page/customer", &controllers.PageController{}, "get:CustomerPage")

	//客户详细信息
	beego.Router("/page/customerView/?:id", &controllers.PageController{}, "get:CustomerViewPage")

	//流失客户信息
	beego.Router("/page/lostCustomer", &controllers.PageController{}, "get:LostCustomerPage")

	//流失客户详细信息
	beego.Router("/page/lostCustomerView/?:id", &controllers.PageController{}, "get:CustomerLostViewPage")

	//用户修改页面
	beego.Router("/page/contactChange", &controllers.PageController{}, "get:ContactChangePage")

	//订单信息
	beego.Router("/page/bill", &controllers.PageController{}, "get:BillPage")

	//  服务信息
	beego.Router("/page/service", &controllers.PageController{}, "get:ServicePage")

	//  添加服务
	beego.Router("/page/serviceAdd", &controllers.PageController{}, "get:ServiceAddPage")

	//  营销机会
	beego.Router("/page/marking", &controllers.PageController{}, "get:MarkingOppPage")

	//  客户计划
	beego.Router("/page/customerPlan", &controllers.PageController{}, "get:CustomerPlansPage")

	//err404
	beego.Router("/page/err400", &controllers.PageController{}, "get:Err400Page")

	//err500
	beego.Router("/page/err500", &controllers.PageController{}, "get:Err500Page")
}
